package net.wexoo.onlinedivelog.view.panels;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

public abstract class LinkPanel extends Panel {

	private static final long serialVersionUID = 1L;

	public LinkPanel(String id, IModel<?> model) {
		super(id, model);

		add(new Link<Void>("link") {

			private static final long serialVersionUID = 1L;

			@Override
			public void onClick() {
				clickAction();
			}
		});
	}

	public abstract void clickAction();
}